package com.athuahua.spzx.feignapi;

import com.athuahua.spzx.entity.OrderInfo;
import com.athuahua.spzx.utils.Result;
import com.athuahua.spzx.vo.CartInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @Author: huahua
 * @Date: 2024/8/19 0019
 * @Time: 13:27
 * @Description:
 */
@FeignClient(value = "service-order")
public interface OrderFeignClient {
    @GetMapping("api/order/orderInfo/getOrderInfoByOrderNo/{orderNo}")
    public OrderInfo getOrderInfoByOrderNo(@PathVariable("orderNo") String orderNo);



    @GetMapping("api/order/orderInfo/updateOrderStatusPayed/{orderNo}/{orderStatus}")
    public Result updateOrderStatus(@PathVariable("orderNo") String orderNo, @PathVariable("orderStatus") Integer orderStatus);

}
